package com.kede.ienum.store;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/***
 ** @Author:Pr.li
 ** @Description:
 ** @Date: create in 2023/6/1 15:58
 ***/
@Getter
@AllArgsConstructor
public enum CertiStatueEnum {
    REVIEW(0,"审核中",3),
    APPROVED(1,"审核通过",2),
   REFUSE(2,"审核拒绝",1);

    @EnumValue
    private Integer code;

    private String value;

    private Integer enumIndex;



    public static CertiStatueEnum parse(Integer code) {
        for (CertiStatueEnum value : values()) {
            if (value.code.equals(code)) {
                return value;
            }
        }
        return null;
    }
}
